{{template "template/Base.html" .}}
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>{{.Title}}</title>
    {{template "head" .Respond}}
    {{.HtmlHead}}
  </head>
  <body>
    <div class="container">
        {{.LayoutContent}}
    </div>
    <div>
        {{.SideBar}}
    </div>
    <!-- /.container -->
    {{template "basejs"}}
    <script type="text/javascript">
        $(function () {
            Messenger.options = { extraClasses: "messenger-fixed messenger-on-top", theme: "flat" };
            {{if .flash.notice}}
                Messenger().post({message: "{{.flash.notice}}",type: 'success'});
            {{end}} 
            {{if .flash.warning}}
                Messenger().post({message: "{{.flash.warning}}",type: 'info'});
            {{end}} 
            {{if .flash.error}}
                Messenger().post({message: "{{.flash.error}}",type: 'error'});
            {{end}}
        })
    </script>
    {{.Scripts}}
  </body>
</html>